Set up travis
authorjustbur <justin@burkett.cc>
Tue, 5 Apr 2016 14:09:59 +0000 (10:09 -0400)
committerjustbur <justin@burkett.cc>
Tue, 5 Apr 2016 14:09:59 +0000 (10:09 -0400)
.travis.yml [new file with mode: 0644]
Cask [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..cdea71f
--- /dev/null
@@ -0,0 +1,26 @@
+language: generic
+sudo: false
+
+branches:
+  only:
+    - master
+
+before_install:
+  - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
+  - evm install $EVM_EMACS --use --skip
+  - cask
+
+env:
+  - EVM_EMACS=emacs-24.4-travis
+  - EVM_EMACS=emacs-24.5-travis
+  - EVM_EMACS=emacs-git-snapshot-travis
+
+matrix:
+  fast_finish: true
+  allow_failures:
+    env:
+      - EVM_EMACS=emacs-git-snapshot-travis
+
+script:
+  - emacs --version
+  - make test
diff --git a/Cask b/Cask
new file mode 100644 (file)
index 0000000..60fa07c
--- /dev/null
+++ b/Cask
@@ -0,0 +1,7 @@
+(source gnu)
+(source melpa)
+
+(package-file "which-key.el")
+
+(development
+ (depends-on "ert"))
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..34574e3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+.PHONY : test
+
+EMACS ?= emacs
+CASK ?= cask
+
+LOADPATH = -L .
+
+ELPA_DIR = \
+       .cask/$(shell $(EMACS) -Q --batch --eval '(princ emacs-version)')/elpa
+
+test: elpa
+       $(CASK) exec $(EMACS) -Q -batch $(LOADPATH) \
+               -l which-key-tests.el -f ert-run-tests-batch-and-exit
+
+elpa: $(ELPA_DIR)
+$(ELPA_DIR): Cask
+       $(CASK) install
+       touch $@